<?php

namespace Database\Factories;

use Illuminate\Database\Eloquent\Factories\Factory;

class RefereeFactory extends Factory
{
    /**
     * Define the model's default state.
     *
     * @return array
     */
    public function definition()
    {
        $addresses = [
            ["北京市", "市辖区"],
            ["河北省", "石家庄市"],
            ["江苏省", "南京市"],
            ["江苏省", "苏州市"],
            ["广东省", "深圳市"],
        ];
        $address   = $this->faker->randomElement($addresses);
        $interests = config('interest');
        $interest = $this->faker->randomElement($interests);
        return [
            'user_id' => $this->faker->numberBetween(1, 12603),
            'name' => $this->faker->name(),
            'phone' => $this->faker->phoneNumber(),
            'province' => $address[0],
            'city' => $address[1],
            'interest' => $interest,
            'point_total' => $this->faker->numberBetween(1, 100000),
        ];
    }
}
